﻿using Domain.Entity.sys;
using Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.CodeRuleService
{
    public interface ICodeRuleService
    {
        //分页查询编号规则信息
        Task<FenYe<CodeRule>> GetCodeRule(FenYe<CodeRule> fenYe, string? name, string? prefix, string? timerule, string? starttime, string? endtime);

        //添加编号规则信息
        Task<int> AddCodeRule(AddCodeRuleDto addCodeRuleDto);

        //删除编号规则信息
        Task<int> DeleteCodeRule(int id);

        //根据id显示规则编号信息
        Task<CodeRule> GetCodeRuleByid(int id);

        //修改规则编号信息
        Task<int> UpdateCodeRule(UpdateCodeRuleDto updateCodeRuleDto);

        //生成编号规则
        Task<string> GeneratedCode(int id);
    }
}
